<%@include file="../header.jsp"%>
 
<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">
<!-- start content -->
<div id="content">

	<!--  start page-heading -->
	<div id="page-heading">
		<h1>List Bimbingan TA - ${idMahasiswa}</h1>
	</div>
	<!-- end page-heading -->
    
    <!-- start search -->
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
      <tr>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
	</tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td>
		<!--  start content-table-inner ...................................................................... START -->
		<div id="content-table-inner">
		
			<!--  start table-content  -->
            
            <!-- start pencarian --><!-- end pencarian -->
            	
                
		<div id="table-content">
                    
                <form id="mainform" action="SidangTAController?page=formBimbinganTA" method="POST">
                <table border="0" width="100%" cellpadding="100" cellspacing="0">
                <tr>
                    <td width="100%">&nbsp;</td>
                    <td valign="top" align="right" >               
                        <input class="form-tambah" type="submit" />
                    </td>
                </tr>
                        <tr><td>&nbsp;</td></tr>
                </table>
                </form>
                    
                                <c:if test="${pesan == 'sukses catat'}">
				<div id="message-green">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="green-left">Pencatatan bimbingan TA tentang ${judulBimbingan} berhasil dilakukan</td>
					<td class="green-right"><a class="close-green"><img src="images/table/icon_close_green.gif"   alt="" /></a></td>
				</tr>
				</table>
				</div>
                                </c:if>
				<!--  end message-green -->
                                <c:if test="${pesan == 'gagal catat'}">
				<div id="message-red">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="red-left">Pencatatan bimbingan TA tentang ${judulBimbingan} gagal dilakukan</td>
					<td class="red-right"><a class="close-red"><img src="images/table/icon_close_red.gif"   alt="" /></a></td>
				</tr>
				</table>
				</div>
                                </c:if>
                
				<!--  start message-green -->
                                <c:if test="${pesan == 'sukses update'}">
				<div id="message-green">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="green-left">Perubahan bimbingan TA tentang ${judulBimbingan} berhasil dilakukan</td>
					<td class="green-right"><a class="close-green"><img src="images/table/icon_close_green.gif"   alt="" /></a></td>
				</tr>
				</table>
				</div>
                                </c:if>
				<!--  end message-green -->
                                <c:if test="${pesan == 'gagal update'}">
				<div id="message-red">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="red-left">Perubahan bimbingan TA tentang ${judulBimbingan} gagal dilakukan</td>
					<td class="red-right"><a class="close-red"><img src="images/table/icon_close_red.gif"   alt="" /></a></td>
				</tr>
				</table>
				</div>
                                </c:if>
                                        
                <!--  start actions-box ............................................... -->
                
				<!-- end actions-box........... -->
		 
		    <!--  start product-table ..................................................................................... -->
				<form id="mainform" action="">
				<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
				<tr>
				  <th class="table-header-repeat line-left "><a href="">No</a></th>
				  <th class="table-header-repeat line-left "><a href="">Tanggal</a></th>
			          <th class="table-header-repeat line-left "><a href="">Judul  Bimbingan</a></th>
			          <th class="table-header-repeat line-left "><a href="">Dosen</a></th>
			          <th class="table-header-repeat line-left "><a href="">Persetujuan</a></th>
				  <th class="table-header-repeat line-left "><a href="">Detail</a></th>
				</tr>
                                <% int i = 1; %>
                                <c:if test="${empty listBimbinganTA}">
                                <tr>
                                    <td colspan="6" align="center" >Anda belum pernah melakukan bimbingan</td>
                                </tr>
                                </c:if>
                                <c:forEach items="${listBimbinganTA}" var="listBimbinganTA">
				<tr>
                                        <td align="center"><% out.print(i); i++;%></td>
                                        <td>${listBimbinganTA.tglBimbingan}</td>
					<td>${listBimbinganTA.judulBimbingan}</td>
                                        <c:forEach items="${listPembimbing2}" var="listPembimbing2" >
                                            <c:if test="${(listPembimbing2.user.idUser == listBimbinganTA.user.idUser)}">
                                        <td>${listPembimbing2.user.namaUser}</td>
                                            </c:if>
                                        </c:forEach>
					<td>${listBimbinganTA.statusBimbingan}</td>
					<td class="options-width"><a href="SidangTAController?page=mhsDetailBimbingan&&idBim=${listBimbinganTA.idBimbingan}&&idMahasiswa=${idMahasiswa}" title="Detail" class="icon-1 info-tooltip"></a></td>
				</tr>
                                </c:forEach>
				</table>
				<!--  end product-table................................... --> 
				</form>
			</div>
			<!--  end content-table  -->
		
			<!--  start actions-box ............................................... --><!-- end actions-box........... -->
			
			<!--  start paging..................................................... -->
			
			<!--  end paging................ -->
			
			<div class="clear"></div>
		 
		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->

<div class="clear">&nbsp;</div>
    
<!-- start footer -->         
<div id="footer">
	<!--  start footer-left -->
	<div id="footer-left">
	
	Admin Skin &copy; Copyright Internet Dreams Ltd. <span id="spanYear"></span> <a href="">www.netdreams.co.uk</a>. All rights reserved.</div>
	<!--  end footer-left -->
	<div class="clear">&nbsp;</div>
</div>
<!-- end footer -->
 
</body>
</html>